package fourzerofour.liangjunwei.day01;

import java.util.Scanner;

public class Question6 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个数：");
        int n=scanner.nextInt();
        int j = 0;
        int a = n;
        for (int i=0;i<5;i=i+1) {
            j = j + a;
            a = a * 10 + n;
        }
        int b= n;
        String str =n+"";
        for (int i=1;i<5;i=i+1){
            b = b * 10 + n;
            str += "+" + b;
        }
        str += ("的结果为" + j);
        System.out.println(str);
    }
}
